<?php
include_once "basepath.php";
if(!isset($message))
{
	$message="";
}
//print_r($lclientinbus);
//PRINT_R($listusers);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="<?php echo $bpath;?>/css/reset.css" />
<link rel="stylesheet" href="<?php echo $bpath;?>/css/text.css" />
<link rel="stylesheet" href="<?php echo $bpath;?>/css/960_24_col.css" />
 <link rel="stylesheet" href="<?php echo $bpath;?>/css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="<?php echo $bpath;?>/css/style.css" />
 <link rel="stylesheet" href="<?php echo $bpath;?>/css/faary.css" type="text/css" />
 <script type="text/javascript" src="<?php echo $bpath;?>/js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="<?php echo $bpath;?>/js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<?php echo $bpath;?>/js/scripts.js"></script>
 <script type="text/javascript" src="<?php echo $bpath;?>/js/jquery.validate.js"></script>
<script>
	$(function(){
	});
</script>
</head>

<body>
	<div class="principal container_24">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage"><img src="<?php echo $bpath;?>/img/logo.png" height="90"></div>
			<div class="logout grid_5"><a href="index.php?loginprocess/loginout"><img src="<?php echo $bpath;?>/img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24">
			<a class="yearlist " href="index.php?liste/listtour">Back to List </a>
		</div>
		<!-- end menupricipal-->
			
			<div class="descprincipal grid_22">
				description
				<br/>
				<h3><?php echo $message;?></h3>
			</div>
			
				<div class="grid_24 listcontent detail">
				<h1>List Users</h1>
				
				<div class="grid_24 top">
				</div>
			
					
			<div class="grid_20detaillist datagrid">
				<table>
				
				<thead><tr><th>NAME</th><th>ADDRESS</th><th>TEL</th><th>FAX</th><th>EMAIL</th><th>ACTIVE</th><th> SPECAIL TYPE</th><th>OPTION</th></tr></thead>
				
				<tbody>
					<?php 
						foreach ($listpartners as $lu)
						{
					?>		
					<tr>
						<td><?php echo $lu["name"];?></td>
						<td><?php echo $lu["address"];?></td>
						<td><?php echo $lu["tel"];?></td>
						<td><?php echo $lu["fax"];?></td>
						<td><?php echo $lu["email"];?></td>
						<td><?php echo $lu["active"];?></td>
						<td><?php echo $lu["sptype"];?></td>
						
						<td>
						<form action="index.php?edit/editpartnerform" method="post">
						<input type="hidden" name="idpartners"  value="<?php echo $lu["idpartners"] ?>" />
						<input type="submit" name="submit" value="Changer">
						</form>
						<form action="index.php?delete/deletepartner" method="post">
						<input type="hidden" name="idpartners"  value="<?php echo $lu["idpartners"] ?>" />
						<input type="submit" name="submit" value="Delete">
						</form>
						</td>
						
					</tr>
					<?php 		
						}
					
					
					?>						
			
					
					
				</tbody>
			</table>
			

		</div>
					</div>
			<form action="index.php?add/addnewpartner" method="post">
				<input type="submit" name="submit" value="Add New Partner">
			</form>
	</div><!--end principal-->
</body>
</html>